<?php

use Illuminate\Database\Seeder;

class SettingsTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
	    DB::table('settings')->insert([
		    'key' => 'shop_title',
		    'value' => 'BuyPlus',
		    'title' => '商店名称',
		    'setting_type_id' => 1,
		    'setting_group_id' => 1,
		    'sort_number' => 0,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('settings')->insert([
		    'key' => 'allow_comment',
		    'value' => '1',
		    'title' => '是否允许商品评论',
		    'setting_type_id' => 2,
		    'setting_group_id' => 1,
		    'sort_number' => 0,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('settings')->insert([
		    'key' => 'use_captcha',
		    'value' => '1,3',
		    'title' => '哪些页面需要验证码',
		    'setting_type_id' => 3,
		    'setting_group_id' => 2,
		    'sort_number' => 0,
		    'created_at' => date('YmdHis', time()),
	    ]);
	    DB::table('settings')->insert([
		    'key' => 'mate_description',
		    'value' => '好可爱的东东',
		    'title' => '描述啊',
		    'setting_type_id' => 4,
		    'setting_group_id' => 1,
		    'sort_number' => 0,
		    'created_at' => date('YmdHis', time()),
	    ]);
    }
}
